<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <div id="app">
    {{ msg }}
    <div v-text="value"></div>
    <input type="text" v-model='value'>
    <div v-html="html"></div>
    <div v-on:click="handleClick">点击我</div>
  </div>
</head>
<body>
  <script src="./dep.js"></script>
  <script src="./watcher.js"></script>
  <script src="./compiler.js"></script>
  <script src="./observer.js"></script>
  <script src="./vue.js"></script>
  <script>
    let vm = new Vue({
      el: '#app',
      data: {
        msg: 'hello world',
        value: 'change me',
        obj: {
          name: 'zz',
          age: 18
        },
        html: '<a>a连接</a>'
      },
      methods: {
        handleClick (a, b) {
          console.log('click')
        }
      },
    })
    console.log(vm)
  </script>
</body>
</html>
